package com.shan.mybatis.service;

import com.shan.mybatis.pojo.Emp;
import com.shan.mybatis.pojo.PageBean;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public interface EmpService {
    PageBean page(Integer page, Integer pageSize);

    PageBean query(String name, Short gender, LocalDate begin, LocalDate end, Integer page, Integer pageSize);

    void deleteByIds(List<Integer> ids);

    void addEmp(Emp emp);

    Emp queryById(Integer id);

    void update(Emp emp);

    Emp login(Emp emp);
}
